import { IsEmail, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class SendCodeDto {
  @ApiProperty({ description: '邮箱' })
  @IsEmail({}, { message: '请输入正确的邮箱格式' })
  @IsNotEmpty({
    message: '邮箱不能为空',
  })
  email: string;
}
